<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<jsp:include page="/base.jsp"></jsp:include>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<title>Youth|有时</title>
		<script type="text/javascript" src="static/js/for-upload/upload.js"></script>
	</head>
	
	<body>
		<h3>文件大小限制在10M以内</h3>
		<!-- 同步提交 -->
		<form action="${contextPath}/upload" method="post" enctype="multipart/form-data">
			<input type="file" name="myFile" id="file-1" />
			<input type="submit" value="同步提交" onclick="return checkFileSize('file-1');">
		</form>
		<hr>
		
		<form id="upload-form-ajax" enctype="multipart/form-data">
			<input type="file" name="myFile" id="file-2" />
			<input type="button" id="btn-ajax" value="ajax提交" />
			进度<label id="percent-lab"></label>
		</form>
		<hr>
		
		<form action="${contextPath}/uploadMaxFile" method="post" enctype="multipart/form-data">
			<input type="file" name="myFile" id="file-3" />${info }
			<input type="submit" value="同步提交" onclick="return true;">
		</form>
		<hr>
		
		<a href="${contextPath}/exceptionCatch">ExceptionCatch</a>
	</body>

</html>